const Layout = () => import('@/layout/index.vue');

const chartsRouter = {
  path: '/integral',
  component: Layout,
  redirect: 'noRedirect',
  name: 'Integral',
  meta: {
    title: '积分',
    icon: 'list'
  },
  children: [
    {
      path: 'goods',
      component: () => import('@/views/integral/goods.vue'),
      name: 'IntegralGoods',
      meta: { title: '积分商品' }
    },
    {
      path: 'category',
      component: () => import('@/views/integral/category.vue'),
      name: 'IntegralCategory',
      meta: { title: '商品分类' }
    },
    {
      path: 'record',
      component: () => import('@/views/integral/record.vue'),
      name: 'IntegralRecord',
      meta: { title: '兑换记录' }
    }
  ]
};

export default chartsRouter;
